<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War:  Fichier source de C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/Anim.h</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../files.html"><span>Liste&nbsp;des&nbsp;fichiers</span></a></li>
    </ul>
  </div>
<h1>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/Anim.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef ANIM_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define ANIM_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;SFML/System.hpp&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;core/PausableClock.h&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="../../d0/d1c/namespacegfx.html">00007</a> <span class="keyword">namespace </span>gfx
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009 
<a name="l00014"></a><a class="code" href="../../df/d6a/classgfx_1_1_anim.html">00014</a> <span class="keyword">class </span><a class="code" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps.">Anim</a>
<a name="l00015"></a>00015 {
<a name="l00016"></a>00016 <span class="keyword">public</span>:
<a name="l00017"></a>00017         <a class="code" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps.">Anim</a>(<span class="keywordtype">void</span>);
<a name="l00018"></a>00018         <span class="keyword">virtual</span> ~<a class="code" href="../../df/d6a/classgfx_1_1_anim.html" title="Implémente la gestion des animation selon le temps.">Anim</a>(<span class="keywordtype">void</span>);
<a name="l00019"></a>00019 
<a name="l00021"></a>00021         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#516ec8ca7c1d8aa486b169af6b138c18" title="Change au prochain frame d&amp;#39;animation.">nextFrame</a>();
<a name="l00022"></a>00022 
<a name="l00024"></a>00024         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#48f2b3dfd109af44339b3b3fb27ad677" title="Change au frame d&amp;#39;animation défini par &amp;#39;count&amp;#39;.">setFrame</a>(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;count);
<a name="l00025"></a>00025 
<a name="l00027"></a>00027         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#7493ee0e415284d650ea550cbe670caf" title="Change au premier frame animation.">reset</a>();
<a name="l00028"></a>00028 
<a name="l00030"></a>00030         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#94d2fe57ba0b2973dee45e88e640530b" title="Retourne le frame d&amp;#39;animation courante.">currentFrame</a>() <span class="keyword">const</span>;
<a name="l00031"></a>00031 
<a name="l00032"></a>00032 
<a name="l00034"></a>00034         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#b43c0bf78e3177e28bc27a594d36eb68" title="Définis si l&amp;#39;animation est en boucle (choice=true).">loop</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> &amp;choice);
<a name="l00035"></a>00035 
<a name="l00037"></a>00037         <span class="keywordtype">bool</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#6fe4d3cacbc2ba32b84a967677246bbe" title="Retourne si l&amp;#39;animation est joué en boucle.">isLoop</a>() <span class="keyword">const</span>;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 
<a name="l00041"></a>00041         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#79dd5ff2d9497e08e08c7c945b1ccdcd" title="Joue l&amp;#39;animation.">play</a>();
<a name="l00042"></a>00042 
<a name="l00044"></a>00044         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#304a61788dc80d57777301a533652d03" title="Arrete l&amp;#39;animation et remet le compteur à zéro.">stop</a>();
<a name="l00045"></a>00045 
<a name="l00047"></a>00047         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#33c2dbc7c2544550b23b93efdbd73284" title="Met l&amp;#39;animation en pause et laisse le compteur où il en est.">pause</a>();
<a name="l00048"></a>00048 
<a name="l00050"></a>00050         <span class="keywordtype">bool</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#8b19bc694e7efa05504b51294f567aa7" title="Retourne true si l&amp;#39;animation joue.">isPlaying</a>() <span class="keyword">const</span>;
<a name="l00051"></a>00051 
<a name="l00053"></a>00053         <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#bdbe43f27fcda4c08f24d9d8873072ef" title="Définis le délais en seconde entre chaque frame.">setDelay</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> &amp;<a class="code" href="../../df/d6a/classgfx_1_1_anim.html#1d902a5704096fe75f276f9fb02f1d5f" title="Retourne le délai entre chaque frame.">delay</a>);
<a name="l00054"></a>00054 
<a name="l00056"></a>00056         <span class="keywordtype">float</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#1d902a5704096fe75f276f9fb02f1d5f" title="Retourne le délai entre chaque frame.">delay</a>() <span class="keyword">const</span>;
<a name="l00057"></a>00057 
<a name="l00059"></a>00059         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#35349e1623b7024f52f0aefea15f3112" title="Met à jour l&amp;#39;animation.">update</a>();
<a name="l00060"></a>00060 
<a name="l00062"></a>00062         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#379278a67c62314fd4977bb7c24f89f4" title="Retourne le nombre de frame de l&amp;#39;animation.">getSize</a>() <span class="keyword">const</span>=0;
<a name="l00063"></a>00063 <span class="keyword">protected</span>:
<a name="l00065"></a><a class="code" href="../../df/d6a/classgfx_1_1_anim.html#128611eeddd8cc97a147851ecead0b9f">00065</a>         <a class="code" href="../../db/d43/classcore_1_1_pausable_clock.html" title="Modification de sf::Clock qui permet de mettre le temps en pause.">core::PausableClock</a> <a class="code" href="../../df/d6a/classgfx_1_1_anim.html#128611eeddd8cc97a147851ecead0b9f" title="Timer de l&amp;#39;animation.">m_time</a>;
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">private</span>:
<a name="l00069"></a>00069         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_frameCount;
<a name="l00071"></a>00071         <span class="keywordtype">float</span> m_delay;
<a name="l00073"></a>00073         <span class="keywordtype">bool</span> m_isLoop;
<a name="l00075"></a>00075         <span class="keywordtype">bool</span> m_play;
<a name="l00076"></a>00076 };
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 }
<a name="l00079"></a>00079 
<a name="l00080"></a>00080 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:38 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
